'use strict';

module.exports = app => {
	const {INTEGER,STRING}=app.Sequelize;

	const Admin=app.model.define('admin',{
		id:{type:INTEGER,primaryKey:true},
		role_id:{type:INTEGER},
		merchant_id:{type:INTEGER},
		username:{type:STRING(64)},
		name:{type:STRING(64)},
		mobile:{type:STRING(16)},
		email:{type:STRING(128)},
		password:{type:STRING(255)},
		salt:{type:STRING(128)},
		status:{type:INTEGER},
		create_id:{type:INTEGER},
		create_name:{type:STRING(64)},
		update_id:{type:INTEGER},
		update_name:{type:STRING(64)},
		create_time:{type:INTEGER},
		update_time:{type:INTEGER}});
	return Admin;
};